package com.peanut.baby.mvp.main.circle;

import com.peanut.baby.model.Ad;
import com.peanut.baby.model.BBSMoment;
import com.peanut.baby.model.CircleTrends;
import com.peanut.baby.model.User;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/18.
 */

public interface CircleFragmentContract {
    interface View extends BaseView{
        void onRequestFailed(String reason);
        void onGetFamousList(List<User> users);
        void onGetAllMoments(List<BBSMoment> moments);
        void onGetCircleMoments(List<BBSMoment> moments);
        void onChangeFollowStatusSuccess(User result);
        void onBannerGet(boolean success, List<Ad> ads, String failReason);

        void onTrendGets(boolean success, CircleTrends trends, String failReason);
    }

    interface Presenter extends BasePresenter{
        void getFamousUserList();
        void getAllMoments(int pageNo, int pageSize);
        void getCircleMoments(int pageNo, int pageSize);
        void changeFollowStatus(User target);
        void getBanner();
        void getTrends();
    }
}
